package com.sourceQ.system.dto.tenant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @author: SourceQ
 * @create: 2024-03-26 10:56
 * @Description:
 */
@Schema(description = "管理后台 - 租户套餐创建/修改 Request VO")
@Data
public class TenantPackageSaveReqDTO {

    @Schema(description = "套餐编号", example = "1024")
    private Long id;

    @Schema(description = "套餐名", example = "VIP")
    @NotEmpty(message = "套餐名不能为空")
    private String name;

    @Schema(description = "状态，参见 CommonStatusEnum 枚举",  example = "1")
    @NotNull(message = "状态不能为空")
    private String status;

    @Schema(description = "备注", example = "好")
    private String remark;

    @Schema(description = "关联的角色编号")
    @NotNull(message = "关联的角色编号不能为空")
    private Set<Long> roleIds;

    @Schema(description = "账号数量", example = "1024")
    private Integer accountCount;

}
